package com.dongchen.designpatter.chapter04.simplefactory.sample02;

/**
 * @author dongchen
 * @time 2021/9/17
 */
public class UserMapper {
    public int findPermission(String username, String password) {
        if ("zhangsan" == username && "12345678".equals(password)) {
            return 2;
        } else {
            return 1;
        }
    }
}
